#include <iostream>

int main() {
    using std::cout;
    int w = cout.width(5);
    cout<<"默认宽度为:"<<"\n";
    cout.width(8);
    for(int i=0;i<10;i++)
    {
        cout.width(8);
        cout<<"i*i = "<<i*i<<"\n";
    }
    return 0;
}